﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005B3 RID: 1459
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishRogueCommonDialogueScRsp : IMessage<FinishRogueCommonDialogueScRsp>, IMessage, IEquatable<FinishRogueCommonDialogueScRsp>, IDeepCloneable<FinishRogueCommonDialogueScRsp>, IBufferMessage
	{
		// Token: 0x170012B0 RID: 4784
		// (get) Token: 0x06004195 RID: 16789 RVA: 0x000B32C5 File Offset: 0x000B14C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishRogueCommonDialogueScRsp> Parser
		{
			get
			{
				return FinishRogueCommonDialogueScRsp._parser;
			}
		}

		// Token: 0x170012B1 RID: 4785
		// (get) Token: 0x06004196 RID: 16790 RVA: 0x000B32CC File Offset: 0x000B14CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishRogueCommonDialogueScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170012B2 RID: 4786
		// (get) Token: 0x06004197 RID: 16791 RVA: 0x000B32DE File Offset: 0x000B14DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishRogueCommonDialogueScRsp.Descriptor;
			}
		}

		// Token: 0x06004198 RID: 16792 RVA: 0x000B32E5 File Offset: 0x000B14E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishRogueCommonDialogueScRsp()
		{
		}

		// Token: 0x06004199 RID: 16793 RVA: 0x000B32ED File Offset: 0x000B14ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishRogueCommonDialogueScRsp(FinishRogueCommonDialogueScRsp other) : this()
		{
			this.eventUniqueId_ = other.eventUniqueId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600419A RID: 16794 RVA: 0x000B331E File Offset: 0x000B151E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishRogueCommonDialogueScRsp Clone()
		{
			return new FinishRogueCommonDialogueScRsp(this);
		}

		// Token: 0x170012B3 RID: 4787
		// (get) Token: 0x0600419B RID: 16795 RVA: 0x000B3326 File Offset: 0x000B1526
		// (set) Token: 0x0600419C RID: 16796 RVA: 0x000B332E File Offset: 0x000B152E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventUniqueId
		{
			get
			{
				return this.eventUniqueId_;
			}
			set
			{
				this.eventUniqueId_ = value;
			}
		}

		// Token: 0x170012B4 RID: 4788
		// (get) Token: 0x0600419D RID: 16797 RVA: 0x000B3337 File Offset: 0x000B1537
		// (set) Token: 0x0600419E RID: 16798 RVA: 0x000B333F File Offset: 0x000B153F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600419F RID: 16799 RVA: 0x000B3348 File Offset: 0x000B1548
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishRogueCommonDialogueScRsp);
		}

		// Token: 0x060041A0 RID: 16800 RVA: 0x000B3356 File Offset: 0x000B1556
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishRogueCommonDialogueScRsp other)
		{
			return other != null && (other == this || (this.EventUniqueId == other.EventUniqueId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060041A1 RID: 16801 RVA: 0x000B3394 File Offset: 0x000B1594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EventUniqueId != 0U)
			{
				num ^= this.EventUniqueId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060041A2 RID: 16802 RVA: 0x000B33EC File Offset: 0x000B15EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060041A3 RID: 16803 RVA: 0x000B33F4 File Offset: 0x000B15F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060041A4 RID: 16804 RVA: 0x000B3400 File Offset: 0x000B1600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EventUniqueId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.EventUniqueId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060041A5 RID: 16805 RVA: 0x000B345C File Offset: 0x000B165C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EventUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventUniqueId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060041A6 RID: 16806 RVA: 0x000B34B4 File Offset: 0x000B16B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishRogueCommonDialogueScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EventUniqueId != 0U)
			{
				this.EventUniqueId = other.EventUniqueId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060041A7 RID: 16807 RVA: 0x000B3504 File Offset: 0x000B1704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060041A8 RID: 16808 RVA: 0x000B3510 File Offset: 0x000B1710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.EventUniqueId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040019C6 RID: 6598
		private static readonly MessageParser<FinishRogueCommonDialogueScRsp> _parser = new MessageParser<FinishRogueCommonDialogueScRsp>(() => new FinishRogueCommonDialogueScRsp());

		// Token: 0x040019C7 RID: 6599
		private UnknownFieldSet _unknownFields;

		// Token: 0x040019C8 RID: 6600
		public const int EventUniqueIdFieldNumber = 5;

		// Token: 0x040019C9 RID: 6601
		private uint eventUniqueId_;

		// Token: 0x040019CA RID: 6602
		public const int RetcodeFieldNumber = 13;

		// Token: 0x040019CB RID: 6603
		private uint retcode_;
	}
}
